package string;

public class StringBuilderPractice {
    public static void main(String[] args) {
        String str="好好学习Java";
        StringBuilder builder=new StringBuilder(str);
        builder.append(",就是为了找工作");//增
        System.out.println(builder);

        builder.replace(8,16,",做一个有才有德的ikun");//改
        System.out.println(builder);

        builder.insert(8,",多学多练");//插入
        System.out.println(builder);

        builder.delete(0,9);//删除
        System.out.println(builder);

    }
}
